<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>后台管理中心</title>
<link rel="shortcut icon" href="__PUBLIC__/admin/assets/ico/favicon.ico" type="image/x-icon" />
<link href="__PUBLIC__/admin/assets/css/bootstrap.min.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/css/jquery.mmenu.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/css/font-awesome.min.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/css/climacons-font.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/plugins/xcharts/css/xcharts.min.css" rel=" stylesheet">
<link href="__PUBLIC__/admin/assets/plugins/fullcalendar/css/fullcalendar.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/plugins/morris/css/morris.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/plugins/jquery-ui/css/jquery-ui-1.10.4.min.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/plugins/jvectormap/css/jquery-jvectormap-1.2.2.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/css/style.min.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/css/add-ons.min.css" rel="stylesheet">
</head>
<body>
<!-- start: Header --> 
<include file="./head" /> 
<!-- end: Header -->
<div class="container-fluid content">
<div class="row">
<!-- start: Main Menu --> 
<include file="./slide" /> 
<!-- end: Main Menu --> 
<!-- start: Content -->
<div class="main ">
  <div class="row">
    <div class="col-lg-12">
      <h3 class="page-header"><i class="fa fa-life-bouy"></i>后台首页</h3>
    </div>
  </div>
  <div class="row">
    <div class="col-md-5">
      <div class="panel panel-default">
        <div class="panel-heading">
          <h2><i class="fa fa-life-bouy red"></i><strong>优秀推广会员排行榜</strong></h2>
          <div class="panel-actions"> <a href="charts-xcharts.html#" class="btn-setting"><i class="fa fa-rotate-right"></i></a> <a href="widgets.html#" class="btn-minimize"><i class="fa fa-chevron-up"></i></a> <a href="widgets.html#" class="btn-close"><i class="fa fa-times"></i></a> </div>
        </div>
        <div class="panel-body">
          <table class="table table-hover">
            <thead>
              <tr>
                <th> # </th>
                <th>手机</th>
                <th>微信</th>
                <th>总额</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
              <?php foreach($user_top10 as $v):?>
              <tr>
                <td> {$v['id']} </td>
                <td>{$v['user_tel']}</td>
                <td>{$v['nickname']}</td>
                <td>￥{$v['zonger']}</td>
                <td><a target="_blank" class="label label-primary" href="{:U("User/update/",array('id'=>$v['id']))}" >查看</a></td>
              </tr>
              <?php endforeach;?>
            </tbody>
          </table>
        </div>
      </div>
    </div>
    <!--/.col-->
    
    <div class="col-md-4">
      <div class="panel panel-default">
        <div class="panel-heading">
          <h2><i class="fa fa-life-bouy red"></i><strong>流量统计</strong></h2>
        </div>
        <div class="panel-body no-padding">
              <div class="panel-body">
          <table class="table table-hover">
            <thead>
              <tr>
                <th>日期</th>
                <th>计费IP</th>
                <th>本日开销</th>
                <th>扣量ip</th>
              </tr>
            </thead>
            <tbody>
              <?php foreach($tongji as $v):?>
              <tr>
                <td> {:date("y-m-d",$v['time'])} </td>
                <td>{$v['ip']}</td>
                <td>￥{$v['price']}</td>
                <td>￥{$v['kouliang']}</td>
              </tr>
              <?php endforeach;?>
            </tbody>
          </table>
        </div>
        </div>
      </div>
    </div>
    <!--/.col-->
    
        <div class="col-md-3"> 
        <div class="panel panel-default">
        <div class="panel-heading">
          <h2><i class="fa fa-life-bouy red"></i><strong>商业授权--购买商业授权请联系qq7813180</strong></h2>
        </div>
        <div class="panel-body no-padding">
         <div class="panel-body">
          
         
            <div class="form-group">
            <label class="col-sm-3 control-label" for="input-small">授权码</label>
            <div class="col-sm-6">
            <input type="text" id="input-small"  class="form-control input-sm" placeholder="" value="<?php echo SYSTEM_SQM;?>">
            </div>
            </div>
             <div class="form-group">
             <span class="col-sm-3"></span>
             <div class="col-sm-6">
       
             </div>
             </div>
	 
    
         
          
         </div>
        </div>
      </div>
           
        
        </div>
 
    
  </div>
  <!--/.row--> 
  
</div>
<!-- end: Content --> 

<!-- /.modal --> 
<include file="./foot" />
</body>
</html>